{% extends "base_3col.html" %}
{% load fundraising_extras i18n weblog %}

{% block sectionid %}homepage{% endblock %}
{% block body_class %}homepage{% endblock %}
{% block layout_class %}column-container sidebar-right{% endblock %}

{% block header %}
  <p>
    <em>{% translate "Django makes it easier to build better web apps more quickly and with less code." %}</em>
  </p>
  <p>
    <a href="{% url 'start' %}" class="cta">{% translate "Get started with Django" %}</a>
  </p>
{% endblock %}

{% block content %}
  <div class="section">
    <h1>{% translate "Meet Django" %}</h1>
    <p>
      {% blocktranslate trimmed %}
        Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design.
        Built by experienced developers, it takes care of much of the hassle of web development, so you can focus
        on writing your app without needing to reinvent the wheel. It’s free and open source.
      {% endblocktranslate %}
    </p>
    <dl class="list-features">
      <dt><i class="icon icon-bolt"></i> {% translate "Ridiculously fast." %}</dt>
      <dd>
        <p>{% translate "Django was designed to help developers take applications from concept to completion as quickly as possible." %}</p>
      </dd>

      <dt><i class="icon icon-lock"></i> {% translate "Reassuringly secure." %}</dt>
      <dd>
        <p>{% translate "Django takes security seriously and helps developers avoid many common security mistakes." %}</p>
      </dd>

      <dt><i class="icon icon-dashboard"></i> {% translate "Exceedingly scalable." %}</dt>
      <dd>
        <p>{% translate "Some of the busiest sites on the web leverage Django’s ability to quickly and flexibly scale." %}</p>
      </dd>
    </dl>

    <a href="{% url 'overview' %}" class="cta outline">{% translate "Learn more about Django" %}</a>
  </div>

  <div class="section">
    <h2>{% translate "Join the Community" %}</h2>
    <div class="community-cta-wrapper">
      <a href="https://forum.djangoproject.com/" class="community-cta-a">
        <div class="community-cta">
          <div>
            {% include "svg_logos/forum.html" %}
          </div>
          <h3>{% translate "Forum - Post a question" %}</h3>
        </div>
      </a>
      <a href="https://chat.djangoproject.com" class="community-cta-a">
        <div class="community-cta">
          <div>
            {% include "svg_logos/discord.html" %}
          </div>
          <h3>{% translate "Discord - Chat with us" %}</h3>
        </div>
      </a>
    </div>
  </div>

    {% comment %}

    <div class="section">
        <h1>Who is Django for?</h1>

        <p>
          You’ve probably used a site that uses Django. Find out why Django was the right solution for these organizations, and why you should start building your project with Django today.
        </p>

        <ul class="list-case-study">
          <li>
            <h3 class="logo" title="Mozilla">Mozilla</h3>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi.</p>
            <a href="{% url 'case_study' %}">Read Case Study</a>
          </li>
          <li>
            <h3 class="logo" title="Disqus">Disqus</h3>
            <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
            <a href="{% url 'case_study' %}">Read Case Study</a>
          </li>
          <li>
            <h3 class="logo" title="Knight Foundation">Knight Foundation</h3>
            <p>When the Knight Foundation began redesigning their <a href="https://www.knightfoundation.org">site</a>, they were on multiple content management systems they’d outgrown, with a site that couldn’t handle traffic spikes. Knight needed a future-proof solution.</p>
            <a href="{% url 'case_study' %}">Read Case Study</a>
          </li>
        </ul>

        <a href="{% url 'case_study_index' %}" class="cta outline">See all case studies</a>

    </div>

    {% endcomment %}

    <!-- END #content-secondary -->
{% endblock %}

{% block content-related %}
  <h2 class="visuallyhidden" id="aside-header">{% translate "Additional Information" %}</h2>
  <div role="complementary">
    <h2 class="visuallyhidden" id="aside-header">{% translate "Additional Information" %}</h2>
    <a href="{% url 'download' %}" class="cta">
      {% blocktranslate trimmed %}
        Download <em>latest release: {{ DJANGO_VERSION }}</em>
      {% endblocktranslate %}
    </a>
    <a href="{% block doc_url %}{% url 'homepage' host 'docs' %}{% endblock %}" class="link-readmore">{% translate "Django documentation" %}</a>

    {% donation_snippet %}

    <h3>{% translate "Latest news" %}</h3>
    {% render_latest_blog_entries 2 hide_readmore=True summary_first=True header_tag='h4' %}
    <a href="{% url 'weblog:index' %}" class="link-readmore">{% translate "More news" %}</a>

    <h3>{% translate "New to Django?" %}</h3>
    <ul class="list-links-small docs-list">
      <li><a href="{% url 'document-detail' lang='en' version='stable' url='intro/install' host 'docs' %}">{% translate "Installation guide" %}</a></li>
      <li><a href="{% url 'document-detail' lang='en' version='stable' url='intro/tutorial01' host 'docs' %}">{% translate "Write your first Django app" %}</a></li>
    </ul>
    <a href="{% url 'start' %}" class="link-readmore">{% translate "Getting started with Django" %}</a>

    <h3>{% translate "The power of Django" %}</h3>
    <ul class="list-links-small docs-list">
      <li><a href="{% url 'document-detail' lang='en' version='stable' url='topics/db/models' host 'docs' %}">{% translate "Object-relational mapper" %}</a></li>
      <li><a href="{% url 'document-detail' lang='en' version='stable' url='intro/tutorial02' host 'docs' %}">{% translate "Automatic admin interface" %}</a></li>
      <li><a href="{% url 'document-detail' lang='en' version='stable' url='topics/templates' host 'docs' %}">{% translate "Robust template system" %}</a></li>
      <li><a href="{% url 'document-detail' lang='en' version='stable' url='topics/i18n' host 'docs' %}">{% translate "Quick internationalization" %}</a></li>
    </ul>
    <a href="{% url 'overview' %}" class="link-readmore">{% translate "Explore more features" %}</a>

    <h3>{% translate "Get involved" %}</h3>
    <dl class="list-links-small">
      <dt><a href="https://code.djangoproject.com/">{% translate "Ticket system" %}</a></dt>
      <dd>
        {% translate "Report bugs and make feature requests" %}
      </dd>
      <dt><a href="https://dashboard.djangoproject.com/">{% translate "Development dashboard" %}</a></dt>
      <dd>
        {% translate "see what's currently being worked on" %}
      </dd>
    </dl>
    <a href="{% url 'community-index' %}" class="link-readmore">{% translate "Inside the Django community" %}</a>

    <h3>{% translate "Get Help" %}</h3>
    <dl class="list-links-small">
      <dt><a href="https://chat.djangoproject.com" target="_blank">{% translate "Django Discord Server" %}</a></dt>
      <dd>
        {% translate "Join the Django Discord Community" %}
      </dd>

      <dt><a href="https://forum.djangoproject.com/" target="_blank">{% translate "Official Django Forum" %}</a></dt>
      <dd>
        {% translate "Join the community on the Django Forum." %}
      </dd>
    </dl>

    <h3>{% translate "The Django Software Foundation" %}</h3>
    <dl class="list-links-small">
      <dt><a href="/foundation/">{% translate "About the Foundation" %}</a></dt>
      <dd>
        {% translate "Our non-profit supports the project" %}
      </dd>

      <dt><a href="/foundation/donate/">{% translate "Support Django" %}</a></dt>
      <dd>
        {% translate "Your contribution makes Django stronger" %}
      </dd>

      <dt><a href="/contact/foundation/">{% translate "Contact the Django Software Foundation" %}</a></dt>
      <dd></dd>
    </dl>
    <a href="/foundation/" class="link-readmore">{% translate "More about the DSF" %}</a>
      {% comment %}
      <h3>Upcoming Events</h3>
      <dl class="list-links-small news-list">
        <dt class="event"><a href="#">DjangoCon 2013 Call for Papers</a></dt>
        <dd>
          April 7th, 2013 | Berlin, Germany
        </dd>

        <dt class="event"><a href="#">DjangoCon 2013 Call for Papers</a></dt>
        <dd>April 7th, 2013 | Berlin, Germany</dd>
      </dl>
      <a href="{% url 'weblog:index' %}" class="link-readmore">See all Events</a>
      {% endcomment %}
  </div>

{% endblock %}

{% block alert %}
  {% comment %}
  <div role="alert">
    <div class="container">
      <dl>
        <dt>
          <i class="icon icon-bullhorn"></i>
          <a href="#">Django Fundraising Drive 2014</a>
        </dt>
        <dd>
          The quickest &amp; most fun way to support Django.
          <a href="#" class="link-readmore">Learn more</a>
        </dd>
      </dl>
    </div>
  </div>
  {% endcomment %}
{% endblock %}
